<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	
	<p:dialog appendToBody="true" modal="true" closable="true" header="#{i18n.DialogoVisualizarCenario_Header}"
		widgetVar="dialogoVisualizarCenario" width="540" resizable="false">
		<h:form id="formVisualizarCenario">
		<div class="dialogo_container_18">
			<util:dialogoLabel grid="18" value="#{i18n.DialogoVisualizarCenario_Nome}" />
			<div class="dialogo_grid_18">
				<p:inputText value="#{cenarioBaseBean.varNome}" styleClass="dialogo_width_18"/>
			</div>
			
			<util:hr />
			
			<div class="dialogo_grid_18 right">
				<p:commandButton action="#{cenarioBaseBean.filtrarTodos}"  
					update="@form, :formPrincipal" onstart="spinner.show();" value="#{i18n.btn_Todos}"
					oncomplete="spinner.hide();dialogoVisualizarCenario.hide()"/>
				<p:commandButton action="#{cenarioBaseBean.filtrarCenarioBase}"  
					update="@form, :formPrincipal" onstart="spinner.show();" value="#{i18n.btn_Filtrar}"
					oncomplete="spinner.hide();dialogoVisualizarCenario.hide()"/>
				<p:commandButton type="button" onclick="dialogoVisualizarCenario.hide()" value="#{i18n.btn_Cancelar}" />	
			</div>
		</div>
		</h:form>
	</p:dialog>
	
</f:view>